What is the purpose of the array_walk () function in PHP